package com.zc.study.designPattern.行为型设计模式.StrategyPattern;

/**
 * VIP会员票价折扣类:具体策略类
 */
public class VIPDiscount implements Discount{
    @Override
    public double calculate(double price) {
        System.out.println("VIP票:");
        System.out.println("增加积分!");
        return price * 0.5;
    }
}
